//package com.example.springboot.common;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;
//
///**
// * 功能：
// * 作者：旺旺威化饼
// * 日期：2025/03/18 10:59
// **/
//@Configuration
////配置拦截器
//public class InterceptorConfig extends WebMvcConfigurationSupport {
//    @Override
//    protected void addInterceptors(InterceptorRegistry registry){
//        registry.addInterceptor(jwtInterceptor())   //配置jwt的拦截器规则
//                .addPathPatterns("/**")         //拦截所有的请求路径
//                .excludePathPatterns("/login","/register");
//        super.addInterceptors(registry);
//    }
//    @Bean
//    public JwtInterceptor jwtInterceptor(){
//        return new JwtInterceptor();
//    }
//}
